package lab02.test03;

public class Student {
       float computerScore;
       float mathScore;
       float englishScore;

       float sum(){

           return computerScore+mathScore+englishScore;
    }
       float average(){

           return(computerScore+mathScore+englishScore)/3;
       }
       float maxScore(){
         float max=computerScore>mathScore? computerScore:mathScore;
         max=max>englishScore?max:englishScore;
         return max;
       }
       float minScore(){
           float min=(computerScore<mathScore)? computerScore:mathScore;
          min=(min<englishScore)?min:englishScore;
          return min;
       }
       float printfScore(){
           System.out.println(sum());
           System.out.println(average());
           System.out.println(maxScore());
           System.out.println(minScore() );
           return printfScore();
       }
    }


